package com.data.mv.pool;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ForkJoinPool;

/**
 * @author 10162085c
 */
@Configuration
public class ConfigPool {

    @Bean("pool")
    ForkJoinPool pool() {
        return new ForkJoinPool(1 << Runtime.getRuntime().availableProcessors());
    }


}
